<?php
/**
 * Created by PhpStorm.
 * User: 技术员专用
 * Date: 2019/3/13
 * Time: 14:43
 */
$content=date('Y-m-d H:i:s');
swoole_async_writefile(__DIR__.DIRECTORY_SEPARATOR.'1.log',$content,function ($fielname){
    echo $fielname." write success".PHP_EOL;
},FILE_APPEND);